package com.constant;

public enum ConstantsEnum {
    SUCCESS(200, "操作成功"),
    ERR_HTTP_METHOD(415, "HTTP METHOD 不正确"),
    ERR_INTERNAL_ERROR(500, "内部错误，请联系管理员"),
    ERR_BUSINESS_EXCEPTION(400, "业务异常");

    private Integer code;
    private String msg;

    private ConstantsEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
